package com.kim.receiver.server.controller;


import com.kim.receiver.server.service.IUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户信息表 前端控制器
 * </p>
 *
 * @author KimWu
 * @since 2020-12-29
 */
@RestController
@RequestMapping("/userInfo")
public class UserInfoController {

    @Autowired
    private IUserInfoService userInfoService;

    @PostMapping("/addNoTxlcn")
    public String addNoTxlcn(){
        userInfoService.addNoTxlcn();
        return "ok";
    }

    @PostMapping("/addTxlcn")
    public String addTxlcn(){
        userInfoService.addTxlcn();
        return "ok";
    }
}
